package com.ibix.gui;

import com.ibix.gui.component.MainFrame;
import com.ibix.gui.component.layout.BottomLayout;
import com.ibix.print.PrintJobPack;
import com.ibix.tools.RedisTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.print.PrintService;
import java.awt.print.PrinterJob;

/**
 * Created by Administrator on 2018/2/1.
 */
public class GuiStructure {
    private static MainFrame mainFrame;

    public static MainFrame getMainFrame()
    {
        if(mainFrame == null)
        {
            mainFrame = new MainFrame("后台打印系统",600,400);
            mainFrame.add(new BottomLayout());
            mainFrame.setVisible(true);
        }
        return mainFrame;
    }

    private GuiStructure(){};
}
